<?php

	if(isset($_POST['enregistrer']))
	{
		$mail = new MailManager();
		$mail->set_contenu($_POST['editor']);
		$mail->set_fileName($name);
		$mail->save();

		header('Location: index.php');
	}
?>